

package com.maoshi.shop.bean.app.param;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

@Data
@ApiModel(value= "添加评论信息")
public class ProdCommParam {
    /**
     * 订单项ID
     */
    @ApiModelProperty(value = "订单项ID")
    @NotNull(message = "订单项ID不能为空")
    private Long orderItemId;

    /**
     * 评价，0-5分
     */
    @ApiModelProperty(value = "评分，0-5分",required=true)
    @NotNull(message = "评分不能为空")
    private Integer score;

    @ApiModelProperty(value = "评论内容",required=true)
    @NotBlank(message = "评论内容不能为空")
    private String content;

    @ApiModelProperty(value = "评论图片, 用逗号分隔")
    private String pics;

    /**
     * 是否匿名(1:是  0:否)
     */
    @ApiModelProperty(value = "是否匿名(1:是  0:否) 默认为否")
    @NotNull(message = "是否匿名不能为空")
    private Integer isAnonymous;

    @ApiModelProperty(value = "评价(0好评 1中评 2差评)")
    @NotNull(message = "评价不能为空")
    private Integer evaluate;

}
